package test;

import frame.Autowired;
import frame.Component;
import frame.PostConstruct;


@Component
public class Cat {

    @Autowired
    private Dog dog;

    @PostConstruct
    public void init(){
        System.out.println("Cat is Constructed,Cat has a field "+dog);
    }
}
